﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GAIA_IU
{
    public partial class Reports : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string codigo = Request["idCliente"];
            codCliente.Text = codigo;
            gridEstudios.DataBind();

            if (gridEstudios.PageCount<=0) {
                Avisar("El cliente "+codigo + ", no posee estudios", false);
            }
        }


        protected void Avisar(string aviso, bool resultado)
        {
            this.aviso_label.Text = aviso;
            if (resultado)
            {
                this.aviso_label.CssClass = "_true";
            }
            else
            {
                this.aviso_label.CssClass = "_false";
            }

        }

        protected void btn_back_Click(object sender, EventArgs e)
        {
            Response.Redirect("act_clientes.aspx");
        }

    }
}